package com.minova.demo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author linrongji
 * @since 2019-12-23
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class TzAttachFile extends Model<TzAttachFile> {

    private static final long serialVersionUID=1L;

    @TableId(value = "file_id", type = IdType.AUTO)
    private Long fileId;

    /**
     * 文件路径
     */
    private String filePath;

    /**
     * 文件类型
     */
    private String fileType;

    /**
     * 文件大小
     */
    private Integer fileSize;

    /**
     * 上传时间
     */
    private LocalDateTime uploadTime;

    /**
     * 文件关联的表主键id
     */
    private Long fileJoinId;

    /**
     * 文件关联表类型：1 商品表  FileJoinType
     */
    private Integer fileJoinType;


    @Override
    protected Serializable pkVal() {
        return this.fileId;
    }

}
